﻿using Microsoft.EntityFrameworkCore;
using Abp.Zero.EntityFrameworkCore;
using HiShing.TongDanGuanJia.Authorization.Roles;
using HiShing.TongDanGuanJia.Authorization.Users;
using HiShing.TongDanGuanJia.MultiTenancy;
using HiShing.TongDanGuanJia.Devices;
using HiShing.TongDanGuanJia.DeviceDataHistories;

namespace HiShing.TongDanGuanJia.EntityFrameworkCore
{
    public class TongDanGuanJiaDbContext : AbpZeroDbContext<Tenant, Role, User, TongDanGuanJiaDbContext>
    {
        /* Define a DbSet for each entity of the application */
        
        public TongDanGuanJiaDbContext(DbContextOptions<TongDanGuanJiaDbContext> options)
            : base(options)
        {
        }

        public DbSet<Device> Device { get; set; }
        public DbSet<DeviceType> DeviceType { get; set; }
        public DbSet<UserDevice> UserDevices { get; set; }

        public DbSet<DeviceDataHistory> DeviceDataHistory { get; set; }
        public DbSet<DeviceMonthDataHistory> DeviceMonthDataHistories { get; set; }

    }
}
